/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lianxi.demo;

import java.util.Vector;

/**
 *
 * @author Administrator
 */
public class VectorDemo2 {
    public static void main(String[] args) {
        Vector a= new Vector();
        
        a.add("第一");
        a.add(new Integer(1));
        a.add(new Double(1.1));
        
         a.add("第二");
        a.add(new Integer(2));
        a.add(new Double(2.2));
        
        System.out.println("Vector容器的内容是：");
        System.out.println(a);
        
        
        System.out.println("a容器的容量是：");
        System.out.println(a.capacity());
        System.out.println("a中元素的个数：");
        System.out.println(a.size());
        
    }
}
